﻿@model Work.BL.POCOs.ProfileEmployeePOCO

@{
    ViewBag.Title = "Employee";
    Layout = "~/Views/Shared/_MyLayout.cshtml";
}
@section Menu{
    @RenderPage("~/Views/Shared/_EmployeeMenu.cshtml")
}

<h2>Employee</h2>

<fieldset>
    <legend>ProfileEmployee</legend>

    

    <div class="display-label">Імя</div>
    <div class="display-field">@Model.Name</div>


    <div class="display-label">Прізвище</div>
    <div class="display-field">@Model.Surname</div>

    <div class="display-label">Регіон</div>
    <div class="display-field">@Model.IdRegion</div>

    <div class="display-label">Стать</div>
    <div class="display-field">@if(Model.Gender == "Male")
                               {
                                   <span>Чоловіча</span>
                               }else
                               {
                                   <span>Жіноча</span>
                               }</div>

    <div class="display-label">Дата народження</div>
    <div class="display-field">@String.Format("{0:g}", Model.Birthday)</div>

    <div class="display-label">Телефон</div>
    <div class="display-field">@Model.Phone</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>

